package com.example.lab.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Room)表实体类
 *
 * @author makejava
 * @since 2022-05-02 15:08:35
 */
@SuppressWarnings("serial")
@TableName("room")
public class Room extends Model<Room> {
    @TableId(value = "Rid" ,type = IdType.AUTO)
    private Integer rid;
    //实验室名字
    private Integer rname;


    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getRname() {
        return rname;
    }

    public void setRname(Integer rname) {
        this.rname = rname;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.rid;
    }
    }

